package de.baumann.browser.present.duobao

import de.baumann.browser.api.OdinObserver
import de.baumann.browser.api.net.vo.duobao.JieXiao
import de.baumann.browser.base.BasePresenter
import de.baumann.browser.iview.IJieXiaoListView
import de.baumann.browser.model.getYiJieXiaoLieBiao

class JieXiaoListPresenter : BasePresenter<IJieXiaoListView>() {

    fun getJieXiaoList() {
        getYiJieXiaoLieBiao()
                .subscribe(object : OdinObserver<List<JieXiao>>(view) {
                    override fun onSuccess(data: List<JieXiao>?) {
                        view?.setList(data)
                    }
                })
    }
}